<!doctype html>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
	language="java"%>
<%@ include file="/jsp/mobile/include/include.jsp"%>
<link rel="stylesheet" href="/mobile/style/mobile/mainO.css"/>
<html lang="cn">
<head>
<%@ include file="/jsp/mobile/include/header.jsp"%>
<title>收款明细</title>
</head>
<body class="nobg">
	<input type="hidden" id="returnUrl" name="returnUrl"  value="javascript:window.jsInjectedObj.goBackMain();"/>
	<div class="main sltChange">
		<%-- <div class="tBm">
			<ul class="clearfix">
				<li><a href="#" class="cur">收款明细</a>
				</li>
				<li><a href="<%=request.getContextPath()%>/mobile/index/encashquery" >取款明细</a>
				</li>
			</ul>
		</div> --%>
		<div class="sltTj" id="default">
			<div class="selTi" id="defaultQuery">
				按条件查询  <i class="ico7change ico ico7"></i>
			</div>
		</div>
		<div class="sltTj" id="collspan" style="display: none">
			<div class="selCi">
				<div class="gTb clearfix" id="collspanQuery">
					<span class="tit tipsChange">按条件查询 </span> <span class="fr iconChange">收回 <i
						class="ico8change ico ico8"></i> </span>
				</div>
				<form id="queryForm"
					action="<%=request.getContextPath()%>/mobile/index/orderquery">
					<div class="gTb">
						<span class="tit">开始日期：</span> <input type="text" class="text"
							name="beginDate"
							value="${ordQueryDomain.beginDate}">
					</div>
					<div class="gTb">
						<span class="tit">结束日期：</span> <input type="text" class="text"
							name="endDate" value="${ordQueryDomain.endDate}">
					</div>
					<div class="gTb">
						<span class="tit">订单金额：</span> <input type="number" class="text"
							name="paymentAmt"
							value="${ordQueryDomain.paymentAmt}">
					</div>
					<div class="gTb">
		            	<span class="tit">收款渠道：</span>
		                <select class="text" name="transType" style="width:94%">
		               		<option value="">全部</option>
		                	<option value="1001">扫码收款</option>
		                    <!-- <option value="1002">无卡收款</option> -->
		                    <!-- <option value="1003">NFC收款</option> -->
							<option value="1004">线下扫码</option>
							<!-- <option value="1006">线上充值</option> -->
		                </select>
		            </div>
					<div class="sBtn">
						<a href="javascript:query();"><i class="ico9change ico ico9"></i> 查询</a>
					</div>
				</form>
			</div>
		</div>
		<div class="searchChange">
			<fmt:parseDate value="${ordQueryDomain.beginDate}" var="beginVar"
				pattern="yyyy-MM-dd" />
			<fmt:parseDate value="${ordQueryDomain.endDate}" var="endVar"
				pattern="yyyy-MM-dd" />
	
			<div class="seCon clearfix">
				<span class="fl"><fmt:formatDate value="${beginVar}"
						pattern="yyyy/MM/dd" />-<fmt:formatDate value="${endVar}"
						pattern="MM/dd" /> </span> <span class="fr">累计金额：￥<fmt:formatNumber
						pattern="#,##0.00" value="${totalAmt}" /> </span>
			</div>
		</div>
		<div class="selJg">
			<c:forEach var="ordListDaily" items="${list}">
				<div class="time">
					<c:out value="${ordListDaily.ordDate}" />
				</div>
				<ul>
					<c:forEach var="ordLogModel" items="${ordListDaily.ordLogList}">
						<li>
							<p>
								订单金额：<i class="red"><fmt:formatNumber pattern="#,##0.00"
										value="${ordLogModel.paymentAmt}" /> </i>
							</p>
							<p>
								订单号：
								<c:out value="${ordLogModel.ordId}" />
							</p>
							<p>
								支付渠道：
								<c:choose>
									<c:when test="${ordLogModel.transType == '1001'}">扫码收款</c:when>
									<%-- <c:when test="${ordLogModel.transType == '1002'}">无卡收款</c:when>
									<c:when test="${ordLogModel.transType == '1003'}">NFC收款</c:when> --%>
									<c:when test="${ordLogModel.transType == '1004'}">线下扫码</c:when>
									<%-- <c:when test="${ordLogModel.transType == '1006'}">线上充值</c:when> --%>
									<c:otherwise></c:otherwise>
								</c:choose>								
							</p>
							<p>
								支付方式：
								<c:choose>
									<c:when test="${ordLogModel.transType == '1001' || ordLogModel.transType == '1004'|| ordLogModel.transType == '1006'}">
										<c:choose>
											<c:when test="${ordLogModel.paymentType == '1'}">支付宝</c:when>
											<c:when test="${ordLogModel.paymentType == '2'}">微信</c:when>
											<c:otherwise></c:otherwise>
										</c:choose>
									</c:when>
									<c:when test="${ordLogModel.transType == '1002'}">
										<common:getDicByCode key="2100" value="${ordLogModel.bankCode}" />
									</c:when>
									<c:when test="${ordLogModel.transType == '1003'}">
										<common:getDicByCode key="2100" value="${ordLogModel.bankCode}" />
									</c:when>
									<c:otherwise></c:otherwise>
								</c:choose>										
							</p>
							<p>
								支付ID号：
									<c:choose>
									<c:when test="${ordLogModel.transType == '1001' || ordLogModel.transType == '1004'|| ordLogModel.transType == '1006'}">
										<c:out value="${ordLogModel.paymentId}" />
									</c:when>
									<c:when test="${ordLogModel.transType == '1002'}">
										<c:out value="${ordLogModel.shortCardNo}" />
									</c:when>
									<c:when test="${ordLogModel.transType == '1003'}">
										<c:out value="${ordLogModel.shortCardNo}" />
									</c:when>
									<c:otherwise></c:otherwise>
								</c:choose>				
								
							</p> <fmt:parseDate value="${ordLogModel.paymentTime}" var="ordDate"
								pattern="yyyyMMddHHmmss" />
							<p>
								交易时间：
								<fmt:formatDate value="${ordDate}" pattern="yyyy-MM-dd HH:mm:ss" />
							</p></li>
					</c:forEach>
				</ul>
			</c:forEach>
			<div class="moreJy">点击查看更多交易</div>
		</div>
	</div>

	<script type="text/javascript">
		function query() {
			$("#queryForm").submit();
		}

		$("#defaultQuery").bind("click", function() {
			$("#default").hide();
			$("#collspan").show();
		});

		$("#collspanQuery").bind("click", function() {
			$("#default").show();
			$("#collspan").hide();
		});
	</script>

</body>
</html>